package cn.catsdad.dto;

import cn.catsdad.entity.Notice;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

/**
 * 通知dto
 *
 * @author xuyonglong
 * @version V1.0 2023/5/11
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@Table(name = "tb_system_notice")
public class NoticeDTO extends Notice {

    /**
     * 通知接收人id列表
     */
    @Transient
    private List<Long> notifierIds = new ArrayList<>();

    /**
     * 创建人
     */
    @Transient
    private String creatorName;

}
